//
//  CFHomeNoticeCell.m
//  CFfuturestalent
//
//  Created by 子yu 刘 on 2018/4/25.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "CFHomeNoticeCell.h"

@implementation CFHomeNoticeCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupViews];
    }
    return self;
}

- (void)setupViews{
    
    self.backgroundColor = [UIColor clearColor];
    self.lbDate = [[UILabel alloc] init];
    self.lbDate.textColor = DEF_COLOR_HOMETEXTDARKCOLOR;
    self.lbDate.font = [UIFont systemFontOfSize:13.0];
    self.lbDate.text = @"3-22";
    [self addSubview:self.lbDate];
    [self.lbDate mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self);
        make.right.mas_equalTo(-15);
    }];
    
    self.lbContent = [[UILabel alloc] init];
    self.lbContent.textColor = DEF_COLOR_HOMETEXTDARKCOLOR;
    self.lbContent.text = @"人生若只如初见，何事秋风悲画扇。";
    self.lbContent.font = [UIFont systemFontOfSize:13.0];
    [self addSubview:self.lbContent];
    [self.lbContent mas_makeConstraints:^(MASConstraintMaker *make) {
          make.centerY.mas_equalTo(self);
        make.left.mas_equalTo(self);
    }];
}

@end
